import _ from 'lodash';
import Print from './print';

function component() {
    const element = document.createElement('div');
    const btn = document.createElement('button');

    // lodash，模块化的引入使用
    element.innerHTML = _.join(['Hello', 'webpack plus'], ' ');
    element.onclick = Print.bind(null, 'Hello webpack!');

    return element;
}

document.body.appendChild(component());